package org.xhy.quickstarter.authority;

import org.springframework.stereotype.Service;

/**
 * @description: 默认校验
 * @Author: Xhy
 * @CreateTime: 2023-11-13 11:58
 */
@Service
public class BaseAuthorityService implements AuthorityService {


    @Override
    public Boolean process(Integer userId, String permission) {
        if (!AuthorityCache.check(userId, permission)) {
            return false;
        }
        return true;
    }
}
